import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Vuex from 'vuex';
import axios from 'axios';

Vue.config.productionTip = false

Vue.use(ElementUI);
Vue.use(Vuex);

let instance = axios.create({
    baseURL: 'http://localhost:8082/',
    timeout: 5000
})

Vue.prototype.$axios = instance;


let store = new Vuex.Store({
    state: {
        count: 1,
    },
    mutations: {

    }
})

new Vue({
    store,
    router,
    render: h => h(App)
}).$mount('#app')